//
//  UIButton+XMSDWebImage.h
//  Fireball
//
//  Created by 俞渊华 on 2017/12/4.
//  Copyright © 2017年 俞渊华. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SDWebImageManager.h>
#import <UIButton+WebCache.h>

@interface UIButton (XMSDWebImage)

- (void)xm_setImageWithURL:(NSString *)urlStr forState:(UIControlState)state;
- (void)xm_setImageWithURL:(NSString *)urlStr forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
- (void)xm_setImageWithURL:(NSString *)urlStr forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDExternalCompletionBlock)completedBlock;



- (void)xm_setBackgroundImageWithURL:(NSString *)urlStr forState:(UIControlState)state;
- (void)xm_setBackgroundImageWithURL:(NSString *)urlStr forState:(UIControlState)state placeholderImage:(UIImage *)placeholder;
- (void)xm_setBackgroundImageWithURL:(NSString *)urlStr forState:(UIControlState)state placeholderImage:(UIImage *)placeholder completed:(SDExternalCompletionBlock)completedBlock;


@end
